import { constantRoutes } from '@/router/index'
export default {
  namespaced: true, // 开启命名空间
  state: {
    menuslist: [] // 是保存动态路由列表的数组
  },
  mutations: {
    steMenus(state, payload) {
      // console.log();
      state.menuslist = [...constantRoutes, ...payload]
    }
  }
}
